﻿' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.

Imports System.Runtime.CompilerServices

Partial Public Module SpecializedCollection

    <Extension>
    Public Function Last(stringCollection As Specialized.StringCollection) As String

        Return If(stringCollection Is Nothing OrElse stringCollection.Count = 0, "", stringCollection.Item(stringCollection.Count - 1))
    End Function

End Module
